<form id="pagerForm" action="jms/demand_order" onsubmit="return navTabSearch(this)" method="post">
    <input type="hidden" name="pageNum" value="${(pager.pageNumber)!}" />
    <input type="hidden" name="numPerPage" value="${(pager.pageSize)!}" />
</form>
<div class="pageHeader">

    <form id="searchForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="jms/demand_order" method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td>
                        <label>客户名称：</label>
                        <select name="demand.cusName" class="combox">
                            <option value="">---请选择---</option>
                            <#list customerList as s>
                                <option value="${(s.name)!}" <#if (cusName)?? && cusName==s.name> selected="selected"</#if>>${(s.name)!}</option>
                            </#list>
                        </select>
                    </td>
                    <td>
                        <label>区县：</label>
                        <select name="demand.homeCounty" class="combox">
                            <option value="">---请选择---</option>
                            <#list homeCountyList as s>
                                <option value="${(s.name)!}" <#if (homeCounty)?? && homeCounty==s.name>selected="selected"</#if>>${(s.name)!}</option>
                            </#list>
                        </select>
                    </td>
                    <td>
                        <label>订单签订：</label>
                        <select name="demand.isOrder" class="combox">
                            <option value="">---请选择---</option>
                            <option value="是" <#if (isOrder)?? && isOrder=='是'> selected="selected"</#if>>是</option>
                            <option value="否" <#if (isOrder)?? && isOrder=='否'> selected="selected"</#if>>否</option>
                        </select>
                    </td>
                    <td>
                        <label>转项目：</label>
                        <select name="demand.isProject" class="combox">
                            <option value="">---请选择---</option>
                            <option value="是" <#if (isProject)?? && isProject=='是'> selected="selected"</#if>>是</option>
                            <option value="否" <#if (isProject)?? && isProject=='否'> selected="selected"</#if>>否</option>
                        </select>
                    </td>

                </tr>
                <tr>
                    <td>
                        <label>站点名称：</label>
                        <input type="text" size="20" name="demand.ctName" value="${(ctName)!}" />
                    </td>
                    <td>
                        <label>需求名称：</label>
                        <input type="text" size="20" name="demand.name" value="${(name)!}" />
                    </td>
                    <td>
                        <label>需求批次：</label>
                        <input type="text" size="20" name="demand.demandMemo" value="${(demandMemo)!}" />
                    </td>

                    <td>
                        <label>建设方式：</label>
                        <select name="demand.buildType" class="combox">
                            <option value="">---请选择---</option>
                            <option value="共建" <#if (buildType)?? && buildType=='共建'> selected="buildType"</#if>>共建</option>
                            <option value="共享" <#if (buildType)?? && buildType=='共享'> selected="selected"</#if>>共享</option>
                            <option value="独建" <#if (buildType)?? && buildType=='独建'> selected="selected"</#if>>独建</option>
                        </select>
                    </td>

                    <td>
                        <div class="button"><div class="buttonContent"><button type="submit">查询</button></div></div>
                    </td>
                </tr>


            </table>
        </div>
    </form>
</div>

<div class="pageContent" style="padding:0px">
    <div class="panelBar">
        <ul class="toolBar">

            <li><a class="add" href="jms/demand_order/add?id={sid_obj}" width="850" height="500" target="dialog" mask="true"><span>订单信息更新</span></a></li>
            <li class="line">line</li>
            <li class=""><a class="icon" href="jms/demand_order/export" target="dwzExport" targettype="navTab" title="实要导出这些记录吗?"><span>订单清单导出</span></a></li>
            <li class="line">line</li>
            <li><a class="add" href="jms/demand_order/imp" width="450" height="360" target="dialog" mask="true"><span>订单信息导入</span></a></li>
            <li>
                <a class="edit" href="jms/demand_order/transProject"  target="selectedTodo" rel="ids"  title="合并项目？"><span>转(合并)项目</span></a>
            </li>
            <li>
                <a class="edit" href="jms/demand_order/batch"  target="selectedTodo" rel="ids"  title="需求转项目确认？"><span>批量转项目</span></a>
            </li>
        </ul>
    </div>


    <table class="table" layoutH="139">
        <thead>
        <tr>
            <th width="60" align="left"><input type="checkbox" group="ids" class="checkboxCtrl"/>序号</th>
            <th width="40" align="center">区县</th>
            <th width="60" align="center">客户名称</th>
            <th width="160" align="left">站点名称</th>
            <th width="160" align="left">需求名称</th>
            <th width="80">建设方式</th>
            <th width="100" align="center">交付时间</th>
            <th width="80">经度</th>
            <th width="80">纬度</th>
            <th width="160" align="center">地址</th>
            <th width="80">是否订单</th>
            <th width="100" align="center">订单签订时间</th>
            <th width="80">是否项目</th>
            <th width="100" align="center">更新时间</th>
            <th width="100" align="center">备注</th>

        </tr>
        </thead>
        <tbody>
        <#list pager.list as demand>
            <tr target="sid_obj" rel="${(demand.id)!}" ondblclick="migr.baseMoudleDblick(this)">
                <td align="left">
                    <input name="ids" type="checkbox" value="${(demand.id)!}"/>
                    ${demand_index + 1}
                </td>
                <td>${(demand.homeCounty)!} </td>
                <td>${(demand.cusName)!} </td>
                <td>${(demand.ctName)!}</td>
                <td>${(demand.name)!}</td>
                <td>${(demand.buildType)!}</td>
                <td>${(demand.submitDate?string("yyyy-MM-dd"))!} </td>
                <td>${(demand.longitude)!}</td>
                <td>${(demand.latitude)!}</td>
                <td>${(demand.addr)!}</td>
                <td><#if (demand.isOrder)! == '是'> 是  <#else> 否 </#if> </td>
                <td>${(demand.orderDate?string("yyyy-MM-dd"))!} </td>
                <td><#if (demand.isProject)! == '是'> 是  <#else> 否 </#if> </td>
                <td>${(demand.modifyDate?string("yyyy-MM-dd"))!} </td>
                <td>${(demand.memo)!} </td>
            </tr>
        </#list>
        </tbody>
    </table>

    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20" <#if pager.pageSize == 20> selected</#if>>20</option>
                <option value="50" <#if pager.pageSize == 50> selected</#if>>50</option>
                <option value="100"<#if pager.pageSize == 100> selected</#if>>100</option>
                <option value="200"<#if pager.pageSize == 200> selected</#if>>200</option>
            </select>
            <span>条，共<font style="color:red;font-weight:bold;">${pager.totalRow!}</font>条，共<font style="color:red;font-weight:bold;">${pager.totalPage!}</font>页&nbsp;&nbsp;&nbsp;&nbsp;</span>
        </div>
        <div class="pagination" targetType="navTab" totalCount="${pager.totalRow!}" numPerPage="${pager.pageSize!}" pageNumShown="10" currentPage="${pager.pageNumber!}"></div>
    </div>


</div>

